<!DOCTYPE html>
<html ng-app=authapp>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>江苏省师范类专业认证系统管理主页</title>
    <meta name="keywords" content="江苏省师范类专业认证系统管理主页">
    <meta name="description" content="江苏省教育评估院,师范类专业,认证系统,管理主页">

	<link rel="stylesheet" href="../../plugin/bootstrap/bootstrap.min.css" />
	<link rel="stylesheet" href="../../basic/style/base.css" />
	<link rel="stylesheet" href="../../models/admin/css/home.css"/>
	<link rel="stylesheet" href="../../models/admin/css/auth_step.css"/>
	<link rel="stylesheet" href="../../models/admin/css/specialTask.css"/>
    <script src="../../plugin/angular/angular.min.js"></script>
    <script src="../../models/admin/js/specialTask.js"></script>
    <script src="../../plugin/bootstrap/ui-bootstrap-tpls.js"></script>
    <script src="../../plugin/angular/angular-cookies.min.js"></script>
    <script src="../../plugin/angular/ng-file-upload.min.js"></script>
    <script src="../../basic/js/source.js"></script>
    <script src="../../basic/javascript/funcs.js"></script>
    <script src="../../basic/js/directive.js"></script>
    
</head>

<body>
	<div authheader></div>
	<div class="main-content" ng-controller="fcontroller">
		<div leftaside></div>
		<aside>
			<div class="top-bar"><span>专业技能/考察任务管理</span></div>
			<section class="row" style="padding:0 25px; margin-top:10px;">
				<div ng-controller="specialTaskList">
					<div class="whole-cover" ng-hide="isAddSub"></div>
					<div class="add-form" ng-hide="isAddSub">
						<div style="text-align:left;">添加学科</div>
						<div style="margin-top:5px;margin-bottom:50px;">
							<span style="display:inline-block;width:25%;">学科名称：</span>
							<input style="display:inline-block;" type="text" ng-model="nameSub" placeholder="请输入学科名称"/>
						</div>
						<div><div class="button" ng-click="addSub()">确认</div><div class="button" ng-click="cancelAddSub()">取消</div></div>
					</div> 
					<div class="whole-cover" ng-hide="isAddM"></div>
					<div class="add-form" ng-hide="isAddM">
						<div>添加专业技能/考察任务</div>
						<div>
							<span>技能/任务类型：</span>
							<select class="fl select01" ng-model="type" ng-change="showUrl()" placeholder="">
								<option value="">请选择技能类型/考察任务</option>
								<option value="0">必测专业技能 </option>
								<option value="1">选测专业技能</option>
								<option value="2">其他任务</option>
							</select>
						</div>
						<div>
							<span>技能名称：</span><input type="text" ng-model="name" placeholder="请输入技能名称"/>
						</div>
						<div>
							<span>专业：</span>
							<select class="fl select01" ng-model="major" placeholder="">
								<option value="">请选择专业</option>
								<option value="0">学前教育</option>
								<option value="1">小学教育</option>
								<option value="2">中学教育</option>
							</select>
						</div>
						<div>
							<span>是否有学科：</span><input type="radio" ng-model="remark" name="remark" value="1" id="remark1"><label for="remark1">是</label><input type="radio" ng-model="remark" value="0" name="remark" id="remark0" ><label for="remark0" style="margin-right:10px;">否</label>
						</div>
						<div ng-show="isUrl">
							<span>上传技能项目用表：</span>
							<div class="uploade"><span ng-bind="fileName">上传</span><input type="file" ngf-select="uploadFiles($file, $invalidFiles,'2')" ngf-max-height="1000" ngf-max-size="1MB"/></div>							
						</div>	
							<!-- <span>上传技能项目用表：</span><input type="text" ng-model="url" placeholder="请输入工作单位"/> -->
						<div><div class="button" ng-click="addFirstZ()">确认</div><div class="button" ng-click="cancelAddM()">取消</div></div>
					</div>
					<div class="">
					</div>
					<div class="top-check clearfix">
						<select class="fl select01 mr15" ng-change="myFunc()" ng-model="sel" placeholder="">
							<option value="">选择查询条件</option>
							<option value="0">按技能类型/考察任务查询</option>
							<option value="1">按技能/考察任务名称查询</option>
						</select>
						<select class="fl select01" ng-hide="isSel01" ng-model="type01" placeholder="">
							<option value="">按技能类型查询</option>
							<option value="0">必测专业技能 </option>
							<option value="1">选测专业技能</option>
							<option value="2">现场考察任务</option>
						</select>						
						<input type="text" class="fl text01"  ng-hide="isSel02" ng-model="name01" placeholder="请输入技能名称"/>
						<div class="fl btn-query btn ml15" ng-click="queryMain()">查询</div>
						<div class="fr btn-add btn mr15" ng-click="addM()">添加</div>
					</div>
					<div class="list-content">
						<div class="cooleList title">
							<div class="detail-part">
								<ul>
									<li>专业技能/考察任务名字</li>
									<li>专业</li>
									<li>专业技能类型/考察任务</li>
									<li>专业技能测试用表名称</li>
								</ul>
							</div>
							<div class="detail-bot">操作</div>
							
						</div>
						<div ng-repeat="arraylist in list" class="cooleList" ng-if="list.length > 0">
							<div class="detail-part">
								<ul>
									<li ng-bind="arraylist.name?arraylist.name:'-'" title="{{arraylist.name}}">专业技能/考察任务名字</li>
									<li ng-bind="arraylist.majorName?arraylist.majorName:'-'" title="{{arraylist.majorName}}">专业</li>
									<li ng-bind="arraylist.typeName?arraylist.typeName:'-'" title="{{arraylist.typeName}}">专业技能类型/考察任务</li>
									<li ng-bind="arraylist.wordName?arraylist.wordName:'-'" title="{{arraylist.wordName}}">专业技能测试用表名称</li>
								</ul>
							</div>
							<div class="detail-bot">
								<span class="action" ng-if="arraylist.remark=='0'" style="color:#169BD5;cursor:pointer;" >无学科</span>
								<span class="action" ng-if="arraylist.remark=='1'" style="color:#169BD5;cursor:pointer;" ng-click="addSubject(arraylist.pid)">添加学科</span>
								<span class="action nodownload" ng-if="arraylist.type=='2'" style="color:#169BD5;cursor:pointer; color:#ccc;">下载</span>
								<span class="action" ng-if="arraylist.type=='0'||arraylist.type=='1'" style="color:#169BD5;cursor:pointer;" ng-click="turnToDownLoad(arraylist.pid)">下载</span>
								<span class="action" style="color:#169BD5;cursor:pointer;" ng-click="delCollect(arraylist.pid)">删除</span>
							</div>
						</div>
						<div ng-if="list.length > 0" style="padding: 10px">共{{totalCount}}条</div>
						<div class="cooleList" style="text-align: center;padding:10px" ng-if="list.length == 0">
							暂无相关数据
						</div>
					</div>
					<section ng-controller="pageDemo" class="col-md-7 pull-right" ng-show = "totalCount > pageSize">
						<pagination total-items="bigTotalItems" ng-model="currentPage" max-size="maxSize" class="pagination-sm" boundary-links="true" rotate="false" num-pages="numPages" items_per_page="itemsPerPage" callback="pageChanged()" previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页"></pagination>
					</section>
				</div>
		    </section>
		</aside>
	</div>
	<div authfooter></div>
</body>
</html>
